﻿using System;

namespace Inovout.Data.Domain
{
    public class AjaxValidationAttribute : Attribute
    {
        public AjaxValidationAttribute(string action, string controller)
         : this(action, controller, null /* areaName */)
        {
        }

        public AjaxValidationAttribute(string action, string controller, string areaName)
        {
            this.Action = action;
            this.Controller = controller;
            this.AreaName = areaName;
        }
        public string Action { get; set; }
        public string Controller { get; set; }
        public string AreaName { get; set; }
        public string HttpMethod { get; set; }

        public string AdditionalFields { get; set; }

        protected string RouteName { get; set; }
        public string ErrorMessage { get; set; }
        public Type ErrorMessageResourceType { get; set; }
        public string ErrorMessageResourceName { get; set; }
    }
}
